package cc.linker.steplink.crm.dao;


import cc.linker.steplink.crm.domain.Awaken;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

public interface AwakenDao {
    List<Map<String, Object>> listAwaken(Map map);
    int insertSelective(Awaken record);
    int delAwaken(Awaken record);
    int editAwaken(Awaken record);

    int addAwakenArticle(Map map);
    int delAwakenArticle(String taskId);

    List<Map<String, Object>> getAwaken(Map map);

    @Update("UPDATE t_crm_tbl_awaken_list \n" +
            "SET `STATUS` = '3' \n" +
            "WHERE\n" +
            "\tGROUP_ID = #{id}")
    void delGroup(String id);

    Integer getArticleCount(Map param);
}